import api from '@/api/api'

const dataCenterRoles = {
  name: '数据中心',
  role: '/dataCenter',
  children: [
    {
      name: '流量分析',
      role: '/traffic',
      api: [],
      children: [
        {
          name: '到馆率分析',
          role: '/traffic/trend',
          api: [api.flowPvList]
        },
        {
          name: '栏目访问量排行',
          role: '/traffic/channel',
          api: [api.statisticChannelList]
        }
      ]
    },
    {
      name: '来源分析',
      role: '/sourceanalysis',
      api: [],
      children: [
        {
          name: '来源分类',
          role: '/sourceanalysis/class',
          api: [api.flowSourceList]
        },
        {
          name: '搜索引擎',
          role: '/sourceanalysis/engin',
          api: [api.flowSourceList]
        },
        {
          name: '来访域名',
          role: '/sourceanalysis/domain',
          api: [api.flowSourceList]
        },
        {
          name: '来访地区',
          role: '/sourceanalysis/city',
          api: [api.flowAreaList]
        },
        {
          name: '搜索词',
          role: '/sourceanalysis/keywords',
          api: [api.flowSourceList]
        }
      ]
    },
    {
      name: '受访分析',
      role: '/surveyedanalysis',
      api: [],
      children: [
        {
          name: '受访页面',
          role: '/surveyedanalysis/surveyed',
          api: [api.flowPagesList]
        },
        {
          name: '路口页面',
          role: '/surveyedanalysis/index',
          api: [api.flowEnterpageList]
        }
      ]
    },
    {
      name: '忠诚度',
      role: '/loyalty',
      api: [api.flowVisitorList],
    },
    {
      name: '网站概况',
      role: '/siteProfile',
      api: [],
      children: [
        {
          name: '内容发布数',
          role: '/siteProfile/contentnum',
          api: [api.statisticContentList, api.statisticContentList, api.fullTextSearchChannelList]
        },
        {
          name: '工作量',
          role: '/siteProfile/worknum',
          api: [api.statisticWorkloadList, api.statisticContentList, api.fullTextSearchChannelList,api.localAll]
        },
        {
          name: '评论量',
          role: '/siteProfile/commentnum',
          api: [api.statisticCommentList]
        },
        {
          name: '留言量',
          role: '/siteProfile/leavenum',
          api: [api.statisticGuestbookList]
        },
        {
          name: '用户注册量',
          role: '/web/usernum',
          api: [api.statisticMemberList]
        }
      ]
    },
  ]
}
export default dataCenterRoles;
